var wrap = document.getElementById("wrap");
var imgs = document.getElementsByTagName('img')[0];
var timer = null;
var i = imgs.offsetLeft/20+10;
var b = 0.2 ;
wrap.style.width = document.documentElement.clientWidth + 'px' || document.body.clientWidth + 'px';
wrap.style.height = document.documentElement.clientHeight + 'px' || document.body.clientHeight + 'px';
console.log(i);
function move(){
	timer = setInterval(function(){
		i -= b
		imgs.style.marginLeft = i + 'rem';
		if(i<=-6){
			clearInterval(timer);
			timer = null;
			window.location.href="start.2.html"
		}
	},100);
}
move();
